Doh! Typo fix for description being clobbered.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 9 Jul 2003 16:04:55 +0000 (16:04 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 9 Jul 2003 16:04:55 +0000 (16:04 +0000)
gpsbabel/waypt.c

index 2aed2bbf656eba862f9a783e713afcca55f0cf9d..cb6e26dd59ce24eab2ec2f5f1efb13cc6e376575 100644 (file)
@@ -77,9 +77,10 @@ waypt_add(waypoint *wpt)
                        xfree(wpt->description);
                if (wpt->notes != NULL) {
                        wpt->description = xstrdup(wpt->notes);
-               }
-               if (wpt->shortname != NULL) {
-                       wpt->description = xstrdup(wpt->shortname);
+               } else  {
+                       if (wpt->shortname != NULL) {
+                               wpt->description = xstrdup(wpt->shortname);
+                       }
                }
        }
        waypt_ct++;